QT       += core gui sql serialport serialbus charts multimedia

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    alarmalerttone.cpp \
    data.cpp \
    deviceserialportcontrol.cpp \
    dynamiccurvedisplayinterface.cpp \
    logrecord.cpp \
    main.cpp \
    maininterface.cpp \
    mainwindow.cpp \
    manualcontrol.cpp \
    modbusmanger.cpp \
    monitordevice.cpp \
    pidcontroller.cpp \
    pidparameterset.cpp \
    registereduserinformation.cpp \
    sensordatadisplayinterface.cpp \
    sensorthresholdparametersset.cpp \
    serialportconnection.cpp \
    serialportset.cpp \
    timeparameterset.cpp \
    usermanagement.cpp \
    usermysql.cpp \
    usermysqls.cpp \
    warninginformation.cpp \
    warningstatisticsinterface.cpp

HEADERS += \
    alarmalerttone.h \
    data.h \
    deviceserialportcontrol.h \
    dynamiccurvedisplayinterface.h \
    logrecord.h \
    maininterface.h \
    mainwindow.h \
    manualcontrol.h \
    modbusmanger.h \
    monitordevice.h \
    pidcontroller.h \
    pidparameterset.h \
    registereduserinformation.h \
    sensordatadisplayinterface.h \
    sensorthresholdparametersset.h \
    serialportconnection.h \
    serialportset.h \
    timeparameterset.h \
    userMysql.h \
    usermanagement.h \
    usermysqls.h \
    warninginformation.h \
    warningstatisticsinterface.h

FORMS += \
    alarmalerttone.ui \
    deviceserialportcontrol.ui \
    dynamiccurvedisplayinterface.ui \
    logrecord.ui \
    maininterface.ui \
    mainwindow.ui \
    manualcontrol.ui \
    modbusmanger.ui \
    monitordevice.ui \
    pidcontroller.ui \
    pidparameterset.ui \
    registereduserinformation.ui \
    sensordatadisplayinterface.ui \
    sensorthresholdparametersset.ui \
    serialportconnection.ui \
    serialportset.ui \
    timeparameterset.ui \
    usermanagement.ui \
    usermysqls.ui \
    warninginformation.ui \
    warningstatisticsinterface.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    Resources.qrc

DISTFILES += \
    res/CurrentUser.png \
    res/fan.jfif \
    res/greenhouse.jfif \
    res/lightingEquipment.png \
    res/rolling.jfif \
    res/waterPump.jfif
RC_ICONS = Logo\logo.ico
include(src/xlsx/qtxlsx.pri)
